// let URL = '192.168.110.111:8105'
let URL = '192.168.110.113:8003'
// let URL = 'www.zxsl.zxmap.cn/ai-api'
// let URL = '192.168.110.111:8105'

// 客户端id
let VITE_APP_CLIENT_ID = 'ae534b7a9dd8968a923dcb323df0b6a0'

let VITE_APP_ENCRYPT = true
// # 接口加密传输 RSA 公钥与后端解密私钥对应 如更换需前后端一同更换
let VITE_APP_RSA_PUBLIC_KEY = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKoR8mX0rGKLqzcWmOzbfj64K8ZIgOdHnzkXSOVOZbFu/TJhZ7rFAN+eaGkl3C4buccQd/EjEsj9ir7ijT7h96MCAwEAAQ=='
// # 接口响应解密 RSA 私钥与后端加密公钥对应 如更换需前后端一同更换
let VITE_APP_RSA_PRIVATE_KEY = 'MIIBVAIBADANBgkqhkiG9w0BAQEFAASCAT4wggE6AgEAAkEAmc3CuPiGL/LcIIm7zryCEIbl1SPzBkr75E2VMtxegyZ1lYRD+7TZGAPkvIsBcaMs6Nsy0L78n2qh+lIZMpLH8wIDAQABAkEAk82Mhz0tlv6IVCyIcw/s3f0E+WLmtPFyR9/WtV3Y5aaejUkU60JpX4m5xNR2VaqOLTZAYjW8Wy0aXr3zYIhhQQIhAMfqR9oFdYw1J9SsNc+CrhugAvKTi0+BF6VoL6psWhvbAiEAxPPNTmrkmrXwdm/pQQu3UOQmc2vCZ5tiKpW10CgJi8kCIFGkL6utxw93Ncj4exE/gPLvKcT+1Emnoox+O9kRXss5AiAMtYLJDaLEzPrAWcZeeSgSIzbL+ecokmFKSDDcRske6QIgSMkHedwND1olF8vlKsJUGK3BcdtM8w4Xq7BpSBwsloE='

if (process.env.NODE_ENV === 'production') {
  URL = 'www.zxsl.zxmap.cn/ai-api'
}

let baseURL = `http://${URL}`
// let baseURL = `https://${URL}`

// 根据当前报错信息，恢复到原始的WebSocket端点
let websocket = `ws://${URL}/resource/websocket`

if (process.env.NODE_ENV === 'production') {
  baseURL = `https://${URL}`
  websocket = `wss://${URL}/resource/websocket`
}

export default {
	URL,
	baseURL,
	websocket,
	VITE_APP_CLIENT_ID,
	VITE_APP_ENCRYPT,
	VITE_APP_RSA_PUBLIC_KEY,
	VITE_APP_RSA_PRIVATE_KEY,
}
